package tom.client.account;

import java.util.List;

import tom.shared.Bank;
import tom.shared.Account;
import tom.shared.TaxCalc;
import tom.shared.Voucher;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface ServiceAsync {

	void selectAccount(String id, AsyncCallback<Account> callback);

	void deleteAccount(String id, AsyncCallback<Boolean> callback);

	void insertAccount(Account record, AsyncCallback<Boolean> callback);

	void updateAccount(Account record, AsyncCallback<Boolean> callback);

	void selectBank(String id, AsyncCallback<Bank> callback);

	void deleteBank(String id, AsyncCallback<Boolean> callback);

	void insertBank(Bank record, AsyncCallback<Boolean> callback);

	void updateBank(Bank record, AsyncCallback<Boolean> callback);

	void selectBank(AsyncCallback<List<Bank>> callback);

	void insertVoucher(Voucher record, AsyncCallback<Boolean> callback);

	void selectVoucher(Integer voucherNo, AsyncCallback<Voucher> callback);

	void insertPayment(Voucher voucher, AsyncCallback<Boolean> callback);

	void selectTaxCalc(AsyncCallback<List<TaxCalc>> callback);

}
